/**
   Has to match generated reg-ppc.c output from gdb sources. To
   recreate:
   
   $ cd gdb-6.3/gdb/regformats
   $ sh regdat.sh reg-i386.dat reg-i386.c
   
   Then inspect reg-i386.c
*/

/* names of registers that can be accessed through gdb. */

#define REGISTER_NAMES { \
/*   0 */    "eax", \
/*   1 */    "ecx", \
/*   2 */    "edx", \
/*   3 */    "ebx", \
/*   4 */    "esp", \
/*   5 */    "ebp", \
/*   6 */    "esi", \
/*   7 */    "edi", \
/*   8 */    "eip", \
/*   9 */    "eflags", \
/*  10 */    "cs", \
/*  11 */    "ss", \
/*  12 */    "ds", \
/*  13 */    "es", \
/*  14 */    "fs", \
/*  15 */    "gs", \
/*  16 */    "st0", \
/*  17 */    "st1", \
/*  18 */    "st2", \
/*  19 */    "st3", \
/*  20 */    "st4", \
/*  21 */    "st5", \
/*  22 */    "st6", \
/*  23 */    "st7", \
/*  24 */    "fctrl", \
/*  25 */    "fstat", \
/*  26 */    "ftag", \
/*  27 */    "fiseg", \
/*  28 */    "fioff", \
/*  29 */    "foseg", \
/*  30 */    "fooff", \
/*  31 */    "fop", \
/*  32 */    "xmm0", \
/*  33 */    "xmm1", \
/*  34 */    "xmm2", \
/*  35 */    "xmm3", \
/*  36 */    "xmm4", \
/*  37 */    "xmm5", \
/*  38 */    "xmm6", \
/*  39 */    "xmm7", \
/*  40 */    "mxcsr", \
}

#define REGISTER_LENGTHS {                        \
   4,  4,  4,  4,  4,  4,  4,  4, /*   0 -   7 */ \
   4,  4,  4,  4,  4,  4,  4,  4, /*   8 -  15 */ \
  10, 10, 10, 10, 10, 10, 10, 10, /*  16 -  23 */ \
   4,  4,  4,  4,  4,  4,  4,  4, /*  24 -  31 */ \
  16, 16, 16, 16, 16, 16, 16, 16, /*  32 -  39 */ \
   4                              /*  40       */ \
}

#define MAX_REGISTER_LENGTH 16

#define REGNUM_eax 0
#define REGNUM_ecx 1
#define REGNUM_edx 2
#define REGNUM_ebx 3
#define REGNUM_esp 4
#define REGNUM_ebp 5
#define REGNUM_esi 6
#define REGNUM_edi 7
#define REGNUM_eip 8
#define REGNUM_eflags 9
#define REGNUM_cs 10
#define REGNUM_ss 11
#define REGNUM_ds 12
#define REGNUM_es 13
#define REGNUM_fs 14
#define REGNUM_gs 15
#define REGNUM_st0 16
#define REGNUM_st1 17
#define REGNUM_st2 18
#define REGNUM_st3 19
#define REGNUM_st4 20
#define REGNUM_st5 21
#define REGNUM_st6 22
#define REGNUM_st7 23
#define REGNUM_fctrl 24
#define REGNUM_fstat 25
#define REGNUM_ftag 26
#define REGNUM_fiseg 27
#define REGNUM_fioff 28
#define REGNUM_foseg 29
#define REGNUM_fooff 30
#define REGNUM_fop 31
#define REGNUM_xmm0 32
#define REGNUM_xmm1 33
#define REGNUM_xmm2 34
#define REGNUM_xmm3 35
#define REGNUM_xmm4 36
#define REGNUM_xmm5 37
#define REGNUM_xmm6 38
#define REGNUM_xmm7 39
#define REGNUM_mxcsr 40

#define GDB_NUM_REGS 41
